package com.sisyphus.mock.utils;

import com.sisyphus.mock.data.entities.UserEntity;

import java.util.UUID;

public class TokenUtil {

    public static String generateToken(UserEntity user) {

        return EncryptUtil.md5(
                user.id +
                        user.nickname +
                        user.email +
                        user.password +
                        System.currentTimeMillis() +
                        UUID.randomUUID().toString()
        );
    }

}
